package com.zbs.framework.dao.rolefunction.entity;

import com.zbs.framework.dao.base.BaseEntity;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 角色功能
 */

@Entity
@Table(name = "mnt_role_function")
@Getter
@Setter
@NoArgsConstructor
public class RoleFunction extends BaseEntity {

    /**
     * 角色Id
     */
    private Integer roleId;

    /**
     * 功能Id
     */
    private Long functionId;

    public RoleFunction(Integer roleId, Long functionId) {
        this.roleId = roleId;
        this.functionId = functionId;
    }
}
